module.exports = function getShortMessages(messages) {
    return messages.filter(function(item){
        return item.message.length < 50
    }).map((item) => {
        return item.message
    })
}
/**
 * 
D:\wxgNodejs\nodepractice\nodeschool\functionalJS>functional-javascript verify getShortMessages.js
submission: [ { message: 'Dolor do duis eu minim et sunt pariatur in.' }, { message: 'Occaecat nostr
ud anim adipisicing ipsum.' }, { message: 'Id labore irure in est magna.' }, { message: 'Est adipisi
cing magna laborum quis.' } ]
solution:   [ 'Dolor do duis eu minim et sunt pariatur in.', 'Occaecat nostrud anim adipisicing ipsu
m.', 'Id labore irure in est magna.', 'Est adipisicing magna laborum quis.' ]

# FAIL
 * 
 */